import Cookies from 'js-cookie'

function setToken(value) {
  return Cookies.set('token', value, { expires: 7 })
}
function getToken() {
  return Cookies.get('token')
}
function removeToken() {
  return Cookies.remove('token')
}
function setUrl(value) {
  return window.sessionStorage.setItem('baseUrl', value)
}
function getUrl() {
  return window.sessionStorage.getItem('baseUrl')
}

export {
  setToken,
  getToken,
  removeToken,
  setUrl,
  getUrl,
}